package com.yhd.admin.service;

import java.util.List;

import com.yhd.admin.bean.Function;


public interface FunctionService {
	//异步加载
	List<Function> getAsyncChildrenByPid(Integer pid);
	
	//同步加载
	List<Function> getSyncChildrenByPid(Integer pid); 
	
	Function checkFunctionName(Function function);
	
	void addFunction(Function function);

	Function getFunctionById(int id);

	void updateFunction(Function function);

	void deleteFunctionById(int id);
}
